'''
#第一题
class sutdent :
  def __init__(self,id,name,age,sex,height,weight,score,ip,phone):
      self.id = id
      self.name = name
      self.sex = sex
      self.height = height
      self.weight = weight
      self.score = score
      self.ip = ip
      self.phone = phone
  def study(self,time):
      print("{}在{}开始学习".format(self.name,time))
  def game(self,name1):
      print("{}正在玩名为{}的游戏".format(self.name,name1))
  def python(self,hang):
      print("{}已编写{}行代码".format(self.name,hang))
  def sum(self,he):
      return sum(he)
'''
'''
#第二题
class car :
    def __init__(self,type,num,color,weight,you):

        self.type = type
        self.num = num
        self.color = color
        self.weight = weight
        self.you = you

    def run(self,G):
        print(f"{self.type}是{G}")

c1 = car('法拉利','4','fen','2','30')
c2 = car('宝马','4','pink','2','30')
c3 = car('铃木','4','fen','2','30')
c4 = car('五菱','4','pink','2','30')
c5 = car('拖拉机','4','pink','2','30')
'''
'''
#第三题
class computer :
    def __init__(self,type,time,color,weight,cpu,neicun,yingpan):
        self.type = type
        self.time = time
        self.color = color
        self.weight = weight
        self.cpu = cpu
        self.neirun = neicun
        self.yingpan = yingpan
    def game(self,g):
        print(f"{self.type}在打名为{g}的游戏")
    def work(self,w):
        print(f"{self.type}正在{w}")
'''
'''
#第四题
class monkey:
    def __init__(self,type,sex,color,weight):
        self.type = type
        self.sex = sex
        self.color = color
        self.weight = weight
    def fire(self,f):
        print(f"{self.type}正在用{f}生火")
    def study(self,s):
        print(f"{self.type}正在学习{s}")
'''
'''打电话
class person:
    def __init__(self,name,sex,age,money,type,mA,big,time,G):
        self.name= name
        self.sex = sex
        self.age = age
        self.money = 100
        self.type = type
        self.mA = mA
        self.big = big
        self.time = time
        self.G = 1000
    def xin(self,x):
        print("{name}发送了短信{x}")
    def call(self,c1,hua):
        if c1 < 1 :
            print("号码为空")
        elif hua < 1:
            print("话费不足")
        else:
            print("电话已播出")
    def Cend(self,t):
        if t < 10 and t > 0:
          S =  self.money - t*1
          g =  self.G +t*15
          print(f"当前剩余话费{S},积分{g}")
        elif t < 20 and t>= 10:
          S = self.money -t*0.8
          g = self.G + t*39
          print(f"当前剩余话费{S},积分{g}")
        else:
            S = self.money - t*0.65
            g = self.G + t*48
            print(f"当前剩余话费{S},积分{g}")
c1 = person('李四','男','18','100','vivo','3500','200','24','1000')
c1.Cend(5)
'''